/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

/**
 *
 */
public class Book 
{
    private String title;
    private String author;
    private double price;
    private String publisher;
    private String isbn;

    public Book(String title, String author, double price,String publisher,String isbn)
    {
        this.title = title;
        this.author = author;
        this.price = price;
        this.publisher=publisher;
         this.isbn=isbn;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        
       return title+";"+author+";"+price+";"+publisher;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

   
    @Override
    public boolean equals(Object o)
    {
           Book srcbook=(Book)o;
      if(srcbook.getIsbn().equals(this.getIsbn()))
          return true;
      else
          return false;
    }
    
    
    
}
